﻿package mortal.game.view.chat.selectPanel
{
    import __AS3__.vec.*;
    import flash.display.*;

    public class CallSprite extends Sprite
    {
        protected var _callVector:Vector.<Function>;

        public function CallSprite()
        {
            this._callVector = new Vector.<Function>;
            return;
        }// end function

        public function addCall(param1:Function) : void
        {
            this._callVector.push(param1);
            return;
        }// end function

        public function removeCall(param1:Function) : void
        {
            if (this._callVector.indexOf(param1) >= 0)
            {
                this._callVector.splice(this._callVector.indexOf(param1), 1);
            }
            return;
        }// end function

        public function removeAllCall() : void
        {
            this._callVector = new Vector.<Function>;
            return;
        }// end function

        protected function callAll(param1:Object) : void
        {
            var _loc_2:Function = null;
            for each (_loc_2 in this._callVector)
            {
                
                _loc_2.call(null, param1);
            }
            return;
        }// end function

    }
}
